package com.service.imput;

import com.dao.RoleDao;
import com.entity.Role;
import com.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("RoleService")
public class RoleServiceImp implements RoleService {

    @Resource
    private RoleDao roleDao;

    @Override
    public List<Role> finRole() {
        return roleDao.finRole();
    }

    @Override
    public Role roleId(int id) {
        return roleDao.roleId(id);
    }

    @Override
    public int updateRole(Role role) {
        return roleDao.updateRole(role);
    }

    @Override
    public int insertRole(Role role) {
        return roleDao.insertRole(role);
    }

    @Override
    public List<Role> listRole(String code, String roleName) {
        return roleDao.listRole(code,roleName);
    }


}
